package com.bll.imple.sweepstakeAction;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.bean.MymienBean;
import com.bean.SweepstakeBean;
import com.bll.Action;
import com.dao.SweepstakeDao;

public class ShowUpdateSweepstakeAction implements Action{

	public String execute(HttpServletRequest request,
			HttpServletResponse response) {
		String values[] = request.getParameterValues("cbx");
		String lujing=request.getParameter("lujing");
		System.out.println("swe:"+lujing);
		if (values != null && values.length != 0) {
			for (int i = 0; i < values.length; i++) {
				int id=Integer.parseInt(values[i]);
				System.out.println("sid:"+id);
				SweepstakeDao dao=new SweepstakeDao();
				SweepstakeBean bean=dao.selectById(id);
				request.setAttribute("bean", bean);
			}
		}
		
		return lujing;
	}

}
